<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <hdjs/>
    <bootstrap/>
    <css file="__TPL__/Public/Css/common.css"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <if value="empty($article)">
            <div class="jumbotron">
              <p style="font-size:63px;">您好, {$hd.session.adminname}</p>
              <p style="font-size:28px;">您还没有发布任何文章,请先发布文章!!!</p>
              <p style="margin-top:10px;"><a class="btn btn-primary btn-lg" role="button" href="{|U:'add'}">点此发布</a></p>
            </div>
        <else>
            <thead>
                <tr>
                    <td width="50">aid</td>
                    <td>文章标题</td>
                    <td width="100">属性</td>
                    <td width="180">添加时间</td>
                    <td width="180">修改时间</td>
                    <td width="130">所属分类<a href="{|U:'index'}">[显示全部]</a></td>
                    <td width="50">作者</td>
                    <td width="150">操作</td>
                </tr>
            </thead>
            <tbody>
                <foreach from="$article" value="$value">
                    <tr>
                        <td width="50">{$value.aid}</td>
                        <td><a href="{|U:'Index/Details/index',array('aid'=>$value['aid'])}" target="_blank">{$value.title}</a></td>
                        <td width="100">{$value.attr}</td>
                        <td width="180">{$value.sendtime|hd_date:'Y-m-d H:i:s'}</td>
                        <td width="180">{$value.updatetime}</td>
                        <td width="100"><a href="{|U:'index',array('cid'=>$value['cid'])}">{$value.cname}</a></td>
                        <td width="50">{$value.author}</td>
                        <td width="150">
                            <a href="{|U:'edit',array('aid'=>$value['aid'])}" class="btn-sm btn-info" style="margin:0 5px 0 0">修改</a>
                             <a href="javascript:" class="btn-sm btn-warning" onclick="if(confirm('确定要删除吗？')) hd_ajax('{|U:'to_recycle',array('aid'=>$value['aid'])}')">删除</a>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </if>
    </table>
    <div class="page_hdjob">
      
    </div>
</div>

</body>
</html>


